using System;
using System.Collections.Generic;
using System.Text;

namespace KukaDataComCommon
{
   [Serializable]
   public class PositionUpdatedEventArgs : EventArgs
   {

      #region Eigenschaften

      private readonly Position position;
      public Position Position
      {
         get { return position; }
      }

      #endregion

      #region Konstruktor

      public PositionUpdatedEventArgs(Position position)
      {
         if (position == null) throw new ArgumentNullException("position");

         this.position = position;
      }

      #endregion

   }

   [Serializable]
   public class AxisPositionUpdatedEventArgs : EventArgs
   {

      #region Eigenschaften

      private readonly AxisPosition position;
      public AxisPosition Position
      {
         get { return position; }
      }

      #endregion

      #region Konstruktor

      public AxisPositionUpdatedEventArgs(AxisPosition position)
      {
         if (position == null) throw new ArgumentNullException("position");

         this.position = position;
      }

      #endregion

   }
}
